package com.example.lemis.common.validation;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Documented
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = AtLeastOneNotBlankValidator.class)
public @interface AtLeastOneNotBlank {
    String[] fields();
    String message() default "内容不能为空，请至少填写一个字段";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
